package part.b;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

import client.ClientConnection;

public class EchoServer {

	public static void main(String[] args) {
		try {
			ServerSocket socket = new ServerSocket(6969);

			while (true) {
				Socket client = socket.accept();
				new Thread(new ClientConnection(client)).start();
			}

		} catch (IOException ioe) {
			System.err.println(ioe);
		}
	}
}
